package com.xbongbong.saas.domain.dao;

import com.xbongbong.pro.domain.entity.UpdateDataEntity;
import com.xbongbong.saas.domain.entity.CustomerStatementStatisticsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CustomerStatementStatisticsDao {
    Integer insert(CustomerStatementStatisticsEntity entity);

    void insertBatch(List<CustomerStatementStatisticsEntity> list);

    CustomerStatementStatisticsEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(CustomerStatementStatisticsEntity entity);

    List<CustomerStatementStatisticsEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);

    List<CustomerStatementStatisticsEntity> getbyIds(@Param("list") List<Long> dataIdList, @Param("corpid") String corpid);

    void updateBatch(@Param("list") List<UpdateDataEntity> updateDataList, @Param("corpid") String corpid);

    Integer deleteBatch(@Param("list") List<Long> dataIdList,@Param("corpid") String corpid);
}